package service.calculator.bonchon.lumina;

import java.math.BigDecimal;

import service.BillingCalculator;
import service.calculator.bonchon.batangas.BonchonBatangasBillingCalculatorImpl;

public class BonchonLuminaBillingCalculatorImpl extends
		BonchonBatangasBillingCalculatorImpl implements BillingCalculator {

	@Override
	protected BigDecimal computeGovernmentBenefitsPerHour() {
		// Per day is computed by monthly/26 days.
		BigDecimal thirteenthMonthPayPerDay = BigDecimal.valueOf(28.08);
		BigDecimal sssPerDay = BigDecimal.valueOf(25.50);
		BigDecimal philhealthPerDay = BigDecimal.valueOf(0.54);
		BigDecimal pagIbigPerDay = BigDecimal.valueOf(3.85);
		BigDecimal ecMcPerDay = BigDecimal.valueOf(0.38);

		BigDecimal governmentBenefits = BigDecimal.valueOf(0.00);
		governmentBenefits = governmentBenefits.add(thirteenthMonthPayPerDay);
		governmentBenefits = governmentBenefits.add(sssPerDay);
		governmentBenefits = governmentBenefits.add(philhealthPerDay);
		governmentBenefits = governmentBenefits.add(pagIbigPerDay);
		governmentBenefits = governmentBenefits.add(ecMcPerDay);

		// Compute per hour
		governmentBenefits = governmentBenefits.divide(BigDecimal.valueOf(8));

		return governmentBenefits;
	}

}
